package com.wanxi.servlet.clothingStyle;//package com.wanxi.servlet.clothingStyle;
//
//import com.alibaba.fastjson2.JSONObject;
//import com.wanxi.model.ClothingStyleModel;
//import com.wanxi.model.ProductModel;
//import com.wanxi.model.ResultModel;
//import com.wanxi.service.ClothingStyleService;
//import com.wanxi.service.ProductService;
//import com.wanxi.service.impl.ClothingStyleServiceImpl;
//import com.wanxi.service.impl.ProductServiceImpl;
//import com.wanxi.util.Tool;
//
//import javax.servlet.ServletException;
//import javax.servlet.annotation.WebServlet;
//import javax.servlet.http.HttpServlet;
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//import java.io.IOException;
//
//@WebServlet("/back/clothingstyle/findAll")
//public class ClothingStyleFindAllServlet extends HttpServlet {
//    @Override
//    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
//        //        1.乱码处理
////        req.setCharacterEncoding("UTF-8");
////        resp.setCharacterEncoding("UTF-8");
////        2.得到前端的值
////        page 第几页 limit 每一页显示的条数
//        String name = req.getParameter("name");
//        String isShow = req.getParameter("isShow");
//        String enable = req.getParameter("enable");
//
//
////        3.封装到model
//        ClothingStyleModel clothingStyleModel = new ClothingStyleModel();
//        clothingStyleModel.setName(Tool.nullToStr(name));
//        clothingStyleModel.setIsShow(Tool.strToInt(isShow));
//        clothingStyleModel.setEnable(Tool.strToInt(enable));
//
//
////        4.调用service
//        ClothingStyleService clothingStyleService = new ClothingStyleServiceImpl();
////        5.得到返回值
//        ResultModel resultModel = clothingStyleService.findAll(clothingStyleModel);
////        6.返回给前端
//        resp.getWriter().println(JSONObject.toJSONString(resultModel));
//
//    }
//}
